The ear canal directs sound waves, collected by the pinna, into the ear and together they act like an old-fashioned ear trumpet to magnify sound. The canal also contains modified sweat glands that secrete ear wax, which is needed to trap any dust and other foreign bodies that might infect the ear.